package com.qy.entity;

import java.util.Map;

import com.thoughtworks.xstream.annotations.XStreamAlias;

public class BaseMsg {
	@XStreamAlias("ToUserName")
	private String toUserName;//接收方的账号(收到的openid)
	@XStreamAlias("FromUserName")
	private String fromUserName;//开发者的微信号
	@XStreamAlias("CreateTime")
	private String createTime;//消息创建时间
	@XStreamAlias("MsgType")
	private String msgType;//消息类型

	public BaseMsg(Map<String,String> requestMap) {
		super();
		this.toUserName = requestMap.get("FromUserName");
		this.fromUserName = requestMap.get("ToUserName");
		this.createTime = requestMap.get("CreateTime");
	}

	public String getToUserName() {
		return toUserName;
	}

	public void setToUserName(String toUserName) {
		this.toUserName = toUserName;
	}

	public String getFromUserName() {
		return fromUserName;
	}

	public void setFromUserName(String fromUserName) {
		this.fromUserName = fromUserName;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getMsgType() {
		return msgType;
	}

	public void setMsgType(String msgType) {
		this.msgType = msgType;
	}
    
    
}
